<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{$config_sitename}</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="__CSS__/ppcustom.css?t=201601251423" rel="stylesheet">
</head>
<body class="body-pad cl-b-white">
	<div class="loading-wrapper"> 
        <div class="loading"></div>
    </div>
    <div class="search">
        <div class="ub ub-ac page-header">
            <div class="ub-f1 page-name ">
                <input type="text" class="recipe-search cl-b-xxlgrey" name="search" placeholder="搜索食谱">
            </div>
            <a href="javascript:;" class="clickable cl-f-lorange poblish-submit search-submit">
                搜索
            </a>
        </div>
        <div class="hot-search cl-b-white row">
            <p class="cl-f-xlgrey">热门搜索</p>
            <foreach name="list" item="lt">
            <div class="type-item-info ub ub-ac ub-bc ub-pj">
                <foreach name="lt" item="ll">
                <span class="search-text clickable text-overflow href-js">{$ll.catename}</span>
                </foreach>
            </div>
            </foreach>
        </div>
        <div class="hot-search cl-b-white row" style="display: none;">
            <p class="cl-f-xlgrey">历史搜索</p>
            <div class="type-item-info ub ub-ver">
                <p class="search-history clickable text-overflow">戚风蛋糕</p>
                <p class="search-history clickable text-overflow">戚风蛋糕</p>
                <p class="search-history clickable text-overflow">戚风蛋糕</p>
                <p class="search-history clickable text-overflow">戚风蛋糕</p>
            </div>
            <p class="clear-history"><span class="clickable">清空历史记录</span></p>
        </div>
    </div>
	<script src="__JS__/jquery-1.11.1.min.js"></script>
    <script src="__JS__/jquery.lazyload.min.js"></script>
    <script src="__JS__/custom.js?t=201601251423"></script>
    <script>
    $(function(){
    	$('.search-submit').click(function(e){
  		    e.preventDefault();
  		    var title = $('input[name=search]').val();
  		    if(title == undefined || title == null || title == '')
  		    {
  	  		    showToast('请输入搜索的关键字');
  	  		    return false;
  		    }
  		    location.href = "{:U('Work/search')}?title=" + title;
  		});

  		$('.href-js').click(function(e){
  		    e.preventDefault();
  		    var title = $(this).text();
    		  location.href = "{:U('Work/search')}?title=" + title;
  		});
    });
    </script>
</body>
</html>